<script type="text/javascript">
    $(document).ready(function() {
        $("#activity_checkAll").click(function() {
            if ($(this).attr("checked") == "checked") {
                $(":checkbox").attr("checked", true);
            } else {
                $(":checkbox").attr("checked", false);
            }
        });

    });
</script> 
<legend>
    <h4>
        <?php
        echo $control->getAjaxLink(array('name' => '功能列表', 'id' => 'showEventList'), array(
            'cooker' => 'BAEvent@showEventList'
        ));
        ?>\
        <?php
        echo $control->getAjaxLink(array('name' => '买单类型', 'id' => 'showBillTypeList'), array(
            'cooker' => 'BAWeBillCooker@showBillTypeList'
        ));
        ?>\
        <?php
        $billTypeAlias = $billType->getValue();
        echo $billTypeAlias;
        ?>
    </h4>
</legend>
<fieldset>
    <table class="table table-hover">
        <thead>
            <tr>
                <th><input type="checkbox" name="activity_checkAll" id="activity_checkAll"></th>
                <th>买单金额</th>
                <th>买单时间</th>
                <th>手机号</th>
                <th>操作</th>
            </tr> 
        </thead>
        <tbody>
            <?php
            foreach ($billView as $id => $list) {
                ?>
                <tr>
                    <td><label class="checkbox">
                            <input type="checkbox" name="subBox[]" value="<?php echo $id; ?>"> 
                        </label></td>
                    <td> <?php echo $list->getItem('amount')->getValue(); ?> </td>
                    <td> <?php echo $list->getItem('billTime')->getValue(); ?> </td>
                    <td> <?php echo $list->getItem('mobile')->getValue(); ?> </td>
                    <td>
                        <div class="row-fluid">
                            <?php
                            echo $control->getLink(array('name' => '查看', 'id' => 'showBill'), array(
                                'cooker' => 'BAWeBill@showBill',
                                'billId' => $id,
                                'theme' => 'mb_bootstrap',
                                'htmlOptions' => array('target' => '_blank')
                            ));
                            ?>
                        </div>                   
                    </td>
                </tr>
            <?php }
            ?>
        </tbody>
    </table>
    <div class="pagination">  
        <ul>  
            <li class="active">
                <a href="javascript:void()">前一页</a>    </li>  
            <li class="active">
                <a href="javascript:void()">1</a>    </li>  
            <li class="active">
                <a href="javascript:void()">后一页</a>    </li>  
        </ul>  
    </div>
